package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallUserAdminMapper;
import org.linlinjava.litemall.db.domain.LitemallUserAdmin;
import org.linlinjava.litemall.db.domain.LitemallUserAdminExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LitemallUserAdminService {

    @Resource
    private LitemallUserAdminMapper userAdminMapper;


    public List<LitemallUserAdmin> queryByUsernameAdmin(String username) {
        LitemallUserAdminExample userAdminExample = new LitemallUserAdminExample();
        userAdminExample.or().andUsernameEqualTo(username);
        return userAdminMapper.selectByExample(userAdminExample);
    }
}
